﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Popup_Customer.aspx.cs" MasterPageFile="~/Popup.Master"
    Inherits="VSM.Popup_Customer" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server">
    <script type="text/javascript" src="/js/jquery-1.4.3.min.js"></script>
    <script type="text/javascript" src="/js/main.js"></script>
    <link href="../../skin/skin.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function RefreshUpdatePanel() {

        };

        function transferData() {
            window.parent.document.getElementById('hf_CustomerCode').value = document.getElementById('txt_CusID').value;
            window.parent.document.getElementById('txt_CustomerName').value = document.getElementById('txt_CusName').value;
            window.parent.document.getElementById('txt_OtherName').value = document.getElementById('txt_OtherName').value;
            window.parent.document.getElementById('txt_Address').value = document.getElementById('txt_Address').value;
            window.parent.document.getElementById('txt_Tel').value = document.getElementById('txt_Tel').value;
            window.parent.document.getElementById('txt_TaxCode').value = document.getElementById('txt_TaxCode').value;
            window.parent.document.getElementById('txt_ContactPerson').value = document.getElementById('txt_ContactPerson').value;
            window.parent.document.getElementById('txt_PhoneContact').value = document.getElementById('txt_PhoneContact').value;
            return Main.cancelDialogClick();
        }
</script>
    <style type="text/css">
        .style1
        {
            font-weight: bold;
            text-decoration: underline;
        }
    </style>
     <div>
    <asp:UpdatePanel ID="editItemUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="True">       
        <ContentTemplate>
            <span class="style1">Customer</span><br />
            <table border="0" width="100%">
                        <tr>
                        <td style="width:50%" class="FormLineItemAlt">
                            <table border="0" width="100%" style="background-color: #C9DBF2;"> 
                            <tr>
                                <td  style="width: 15%" class="FormLineItemAlt">Customer ID</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_CusID" 
                                         runat="server" Width="70%" ClientIDMode="Static"></asp:TextBox>
                                     <asp:Button ID="btn_Search" runat="server" BackColor="#1B7FC2" 
                                         ForeColor="#FFFFFF" Height="22px" onclick="btn_Search_Click" Text="..." 
                                         Width="18%"/>
                                </td>
                                 <td  style="width: 15%" class="FormLineItemAlt">Contact Person</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_ContactPerson" runat="server" Width="90%" 
                                         ClientIDMode="Static"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td  style="width: 15%" class="FormLineItemAlt">Customer Name</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_CusName" 
                                         runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox></td>
                                     <td  style="width: 15%" class="FormLineItemAlt">Contact Phone</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_PhoneContact" runat="server" Width="90%" 
                                         ClientIDMode="Static"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td  style="width: 15%" class="FormLineItemAlt">Other Name</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_OtherName" 
                                         runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox></td>
                                          <td  style="width: 15%" class="FormLineItemAlt">Tax Code</td>
                                     <td  style="width: 35%" class="FormLineItemAlt">
                                         <asp:TextBox ID="txt_TaxCode" runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox>
                                    </td>
                            </tr>
                             <tr>
                                <td  style="width: 15%" class="FormLineItemAlt">Email</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Email" 
                                         runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox></td>
                                          <td style="width: 15%" class="FormLineItemAlt">
                                    Address</td>
                                <td style="width: 35%" rowspan="2" class="FormLineItemAlt">
                                    <asp:TextBox ID="txt_Address" runat="server" Height="48px" TextMode="MultiLine" 
                                        Width="90%" ClientIDMode="Static"></asp:TextBox>
                                </td>
                            </tr>
                             <tr>
                                <td  style="width: 15%" class="FormLineItemAlt">Tel</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Tel" 
                                         runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox></td>
                                        <td  style="width: 15%" class="FormLineItemAlt">&nbsp;</td>


                            </tr>
                             <tr>
                                <td  style="width: 15%" class="FormLineItemAlt">Fax</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Fax" runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox>
                                 </td>
                                 <td class="FormLineItemAlt" style="width: 15%">Comment</td>
                                 <td class="FormLineItemAlt" style="width: 35%" rowspan="2">
                                     <asp:TextBox ID="txt_Remarks" runat="server" Height="48px" TextMode="MultiLine" 
                                         Width="90%" ClientIDMode="Static"></asp:TextBox>
                                 </td>
                            </tr>
                            <tr>
                                <td  style="width: 15%" class="FormLineItemAlt">Mobile</td>
                                 <td  style="width: 35%" class="FormLineItemAlt">
                                     <asp:TextBox ID="txt_Mobile" runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox>
                                </td>
                                <td  style="width: 15%" class="FormLineItemAlt"></td>

                            </tr>
                            

                            </table>

                        </td>
                        
                        </tr>
                   </table>
                   <table border = "0", width="100%">
                   <tr>
                        <td>
                            <asp:Button ID="btn_New" runat="server" BackColor="#1B7FC2" 
                                ForeColor="#FFFFFF" Height="30px" 
                                Text="New" Width="90px" onclick="btn_New_Click" />
                            <asp:Button ID="btn_Modify" runat="server" BackColor="#1B7FC2" 
                                ForeColor="#FFFFFF" Height="30px" OnClick="btn_Modify_Click" Text="Modify" 
                                Width="90px" />
                            <asp:Button ID="btn_Save" runat="server" BackColor="#1B7FC2" 
                                ForeColor="#FFFFFF" Height="30px" 
                                Text="Save" Width="90px" onclick="btn_Save_Click" />

                                 <asp:Button ID="btn_Choose" runat="server" BackColor="#1B7FC2" 
                                ForeColor="#FFFFFF" Height="30px" OnClientClick="transferData();" 
                                Text="Choose" Width="90px" onclick="btn_Choose_Click" />

                            <asp:Button ID="btn_Cancel" runat="server" BackColor="#1B7FC2" 
                                ForeColor="#FFFFFF" Height="30px" OnClientClick="return Main.cancelDialogClick()" 
                                Text="Cancel" Width="90px" />
                        </td>
                   </tr>
                   <tr>
                    <td>
                        <asp:Label ID="lb_Message" runat="server" Text="[]"></asp:Label>
                    </td>
                   </tr>
                   </table>
            <div ID="action-form">
                <%--<asp:ImageButton ID="btnAdd" runat="server" 
                    ImageUrl="~/skin/images/SAP_choose.png" OnClick="btnAdd_Click" />
                <asp:ImageButton ID="btnCancel" runat="server" 
                    ImageUrl="~/skin/images/SAP_cancel.png" 
                    OnClientClick="return Main.cancelDialogClick()" />
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl="~/skin/images/SAP_New.png" Visible="False" />--%>
            </div>
        </ContentTemplate>
        <Triggers>
           <%-- <asp:PostBackTrigger  ControlID="btnFilter" />--%>
          <%--  <asp:PostBackTrigger  ControlID="txtFilter" />--%>
        </Triggers>
    </asp:UpdatePanel>
        </div>
</asp:content>
